package com.jisu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jisu.mapper.SpecsMapper;
import com.jisu.pojo.Specs;
import com.jisu.service.SpecsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecServiceImpl extends ServiceImpl<SpecsMapper, Specs> implements SpecsService {
    @Override
    public List<Specs> findByModelId(String modelId) {
        // 使用MyBatis Plus的查询方法，根据modelId查询车辆信息
        return this.lambdaQuery()
                .eq(Specs::getModelId, modelId)
                .list();
    }
}
